/**
 * 
 */
package itdb1.commun;

/**
 * @author Luc DUZAN
 *
 */
public class FileAnswer extends NetworkSignal{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6771467617804488385L;
	private boolean accepted;

	/**
	 * @param accepted is set to True if the file is accepted otherwise it's set to false
	 */
	public FileAnswer(boolean accepted) {
		this.setAccepted(accepted);
	}

	/**
	 * @return the accepted
	 */
	public boolean isAccepted() {
		return accepted;
	}

	/**
	 * @param accepted the accepted to set
	 */
	public void setAccepted(boolean accepted) {
		this.accepted = accepted;
	}
	
	@Override
	public String toString() {
		return "FileAnswer : " + isAccepted();
	}

}
